package lihao;

public class Test09 {
    public static void main(String[] args) {
        String element = "lihao";
        String[] arr = new String[] {"lihao","zhangsan","lisi","wangwu"};
        System.out.println(judge(element, arr));
    }

    public static Boolean judge(String element,String[] arr) {
        for (String i : arr) {
            if (i == element) {
                return true;
            }
        }
        return false;
    }
}
